package by.jtraining.london.model;
/**
 * @author Irina Pakhomova
 *
 */
public enum Education {
   SECONDARY("Secondary"),HIGHER("Higher"),POST_GRADUATE_COURSES("Post-Graduate Courses");
   private String education;
   private Education(String educationType) {
	   education = educationType;
   }
   
   static public Education getTypeEducation(String edType) {
       for (Education educationType: Education.values()) {
           if (educationType.getEducation().equals(edType)) {
               return educationType;
           }
       }
       throw new RuntimeException("unknown education type");
   }
   
   public String getEducation() {
       return education;
   }
}
